package com.hryk.medical;

import android.content.Context;
import android.support.multidex.MultiDex;

import com.baoteng.base.component.BaseApp;
import com.baoteng.component.log.TLog;
import com.baoteng.liteorm.LiteOrmProxy;
import com.baoteng.network.executor.HttpExecutor;
import com.hryk.medical.login.ui.LoginActivity;

/**
 * Author: loren
 * Date: 2019/8/8
 */
public class MedicalApp extends BaseApp {

    @Override
    public void onCreate(boolean isMainProcess) {
        super.onCreate(isMainProcess);
    }

    @Override
    public void initLibs() {
        super.initLibs();
        TLog.init(true);
        LiteOrmProxy.getInstance().initCascade(MedicalApp.this);
        HttpExecutor.getDefault().init(this);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(base.getApplicationContext());
    }

    @Override
    public String[] allNeedPermissions() {
        return new String[0];
    }

    @Override
    public Class<?> firstActivity() {
        return LoginActivity.class;
    }

}
